<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>

<style type="text/css">

body{
	padding:20px;
}
.even{
	background:#eee;
}
.odd{
	background:#f2f399;
}
</style>

</head>
<body>

    <div class="desk">
      <div class="app-create fl">
        <div class="app-create-hline"></div>
        <div class="app-create-vline"></div>
        <div class="app-create-text">新增基础服务</div>
      </div>    
      <div class="app-myapp fl ${bgcolor}">
        <div class="app-myapp-shared">{{tip}}</div>
        <div class="app-myapp-photo icons"></div>
        <div class="app-myapp-caption">{{title}}</div>
        <div class="app-myapp-op">
          <div class="fl begin_cur"> <span></span> </div>
          <div class="fl stop_cur"> <span></span> </div>
          <div class="fr close_cur"> <span></span> </div>
          <div class="fr set"> <span></span> </div>
        </div>
      </div>
    </div>

</body>
</html>


<script>

var item;
var data = [
    {
        title:"xxx",
        obj:{
            title:"yyy",
            _title:"4y"
        }
    },
    {
        title:"xxx",
        obj:{
            title:"yyy",
            _title:"yyyy"
        }
    }
];

var person = {
    name: "kongsam",
    age: 21,
    hobbies: [
        "看动漫",
        "骑行",
        "玩游戏"
    ]
}

var proxy = new Proxy(person, {
    get: function (target, property) {
          // 打印target和property，查看里面到底是什么。
          console.log("target = ", target);
          console.log("property = ", property);
          // 判断外界访问的对象属性是否存在于目标对象中。
          if (property in target) {
                return target[property];
          } else {
                // 如果外界访问的对象属性不存在与目标对象中，抛出异常。
                throw new ReferenceError('Property "' + property + '" 不存在。');
          }
    },
    set: function(target,property,value){
      console.log("write000",property);
      if(property in target)
      {
        console.log("write");
        target[property] = value;
      }
    },
    ownKeys : function(target){
        console.log("ownKeys",target);
    }
});

proxy.name = "@@@";
proxy.hobbies.push("@@@");
proxy.hobbies[0] = "ssss"
console.log("#",proxy.hobbies);
console.log("#",proxy.abc);
</script>
 
